home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 02 / 8 / DISK0283.ZIP / CWEEP.TXT < prev    next >
Text File  |  1988-01-18  |  39KB  |  777 lines

  1.                     CWEEP  --  A SWEEP-like program for MS-DOS        Page 1
  2.  
  3.  
  4.                                    By Gary M. Berg
  5.  
  6.                                  3707 Silver Oak St
  7.                                 Dayton, Ohio   45424
  8.  
  9.                                          or
  10.                                  c/o Chemineer Inc.
  11.                                     P.O. Box 1123
  12.                                   Dayton, OH  45401
  13.                                    (513) 454-3213
  14.  
  15.  
  16.                                  C.I.S. # 70106,1624
  17.  
  18.                                    Date: 17-Jan-88
  19.  
  20.                 Copyright (C) 1984-87 by Gary M. Berg/Chemineer Inc.
  21.  
  22.  
  23.                                      Disclaimer
  24.  
  25.            This software has been released to the public domain by the
  26.         author.  All commercial rights are retained by the author.  It may be
  27.         freely passed on to others as long as no charge is made except for
  28.         possibly a small copying charge.  Although this software is thought to
  29.         work as described, no warranty of fitness is made for this software.
  30.  
  31.  
  32.  
  33.            CWEEP is a program which provides the same capabilities for the
  34.         MS-DOS user as the program SWEEP does for the CP/M user.  It provides
  35.         the ability to take a sorted list of the files on a disk and move
  36.         forward and backward in the list.  Files can be viewed, copied,
  37.         deleted individually and in groups.
  38.  
  39.            CWEEP is invoked at the MS-DOS command line by:
  40.  
  41.                           CWEEP {d:}{path}{afn} {-sw} {-sw}
  42.  
  43.           {d:}      an optional drive letter, the default being the currently
  44.                     logged drive
  45.  
  46.           {path}    an optional path.  Valid only for the 2.x version.
  47.  
  48.           {afn}     an optional ambiguous filename of what files to look at,
  49.                     the default begin "*.*" (in the currently logged
  50.                     directory under DOS 2.x).
  51.  
  52.           {-sw}     an optional switch or switches.  Switches begin with a
  53.                     '-' character.
  54.  
  55.                     CWEEP  --  A SWEEP-like program for MS-DOS        Page 2
  56.  
  57.            CWEEP will then look up all files matching the specified files,
  58.         and prompt with the first file name.  At this point, commands can be
  59.         entered to move around in the list, tag files, copy files, etc.  The
  60.         display on the next page was generated by starting CWEEP with no
  61.         filename specified:
  62.  
  63.  
  64.              CWEEP
  65.  
  66.                           CWEEP version 2.31a as of 17-Jan-88
  67.                  Copyright (C) 1984-87 by: Gary M. Berg/Chemineer Inc.
  68.  
  69.            sp/cr Advance to next file          <O>  Output list (-+ only)
  70.             [A]  Again tag '#' files (-+)      [P]  Protected mass copy
  71.             [B]  Back up one file              <Q>  Query files (-+ only)
  72.             [C]  Copy file to drive (-)        [R]  Rename a file
  73.             [D]  Delete a file                 [S]  Sort directory
  74.             [E]  Erase (un)tagged files        [T]  Tag a file
  75.             [F]  Free space on a drive         [U]  Untag a file
  76.             [H]  Hexadecimal display (-+~)     [V]  View a file (-+~)
  77.             [I]  Inquire file size/time (-+)   [W]  Wildcard file tag (-+)
  78.             [J]  Jump to a named entry         [X]  Exit program
  79.             [L]  Log new drive/filename (-+)   [Y]  Modify attributes (-+)
  80.             [M]  Mass copy tagged files        [Z]  Change subdirectory(-)
  81.             [N]  Calculate CRC (-+)            [!]  Goto DOS
  82.           [?],[/]Print this message            [=]  Goto settings menu
  83.  
  84.           [-?], [+?] other help messages, [@] for printer, [~] for search
  85.  
  86.            55 files, using 1284128 bytes (1283K) -- 1837056 bytes free (1794K)
  87.                 Volume label: <Data>         Path = 'D:\CWEEP\'
  88.  
  89.           1. D:CWEEP   .TXT 03-Nov-1987    32K =[ ]
  90.  
  91.  
  92.            The files matching what was specified (in this case *.*) are
  93.         sorted in alphabetic order, and the first file in the list is listed
  94.         on the screen with the date and the size rounded up to the nearest 1K. 
  95.         In addition, the amount of space free and the amount of space used in
  96.         the selected files is displayed.
  97.  
  98.            Note that in the display the period "." following the file
  99.         sequence number on the left will display as: "r" if the file is read-
  100.         only, "h" if it is hidden, and "s" if the files is a system file.  The
  101.         colon ":" following the file size will display as an equals sign "="
  102.         if the file does NOT have the archive bit set.  Thus, we can have
  103.         displays such as:
  104.  
  105.           1. D:CWEEP   .HST 18-Jul-1987     4K :[ ]  Read/write, archive on
  106.           1r D:CWEEP   .HST 18-Jul-1987     4K :[ ]  Read-only,  archive on
  107.           1. D:CWEEP   .HST 18-Jul-1987     4K =[ ]  Read/write, archive off
  108.           1r D:CWEEP   .HST 18-Jul-1987     4K =[ ]  Read-only,  archive off
  109.  
  110.                     CWEEP  --  A SWEEP-like program for MS-DOS        Page 3
  111.  
  112.            The characters following a command description on the menu are the
  113.         allowed prefix characters for that command.  For example, the [V]iew
  114.         command may be prefixed with a '+', '-', or a '~' character, in
  115.         addition to be used without any prefix character at all.  Those
  116.         commands with a command letter surrounded with '<' and '>', (such as
  117.         <O>utput), can be used by the prefix characters, but cannot be used by
  118.         themselves.
  119.  
  120.                        --------------------------------------
  121.  
  122.            The following is a list of commands with a short explanation:
  123.  
  124.           [@]       This character may be prefixed to a command to cause the
  125.                     output of the command to also go to the printer.  This
  126.                     works with the [?] help, [H]ex, [N] CRC, [Q]uery, and
  127.                     [V]iew commands.  If the command is a "paged" display,
  128.                     form-feeds will automatically be added to the printer
  129.                     output every 60 lines, and a page heading will be printed
  130.                     for the view and hex dump commands.
  131.  
  132.           [~]       This character may be prefixed to the view and hex dump
  133.                     command to cause a search for the "search target" to be
  134.                     done.  The search target is entered with "+V" or "+H", as
  135.                     explained below.  The ~ may be combined with other prefix
  136.                     characters to get paged view/hex dump output.
  137.  
  138.           <sp>
  139.           <cr>      Advance to the next file on the list.  Go to the first
  140.                     file on the list if you are at the last file on the list.
  141.  
  142.           [A]       Re-tag all files which are marked with a "#" in the list.
  143.  
  144.           [-A]      Reverse the status of tagged/untagged files.  All files
  145.                     which have tags of ' ' are tagged with an '*', and all
  146.                     files with a tag of '*' are tagged with a ' '.  All files
  147.                     which are tagged with a '#' (from previous mass copying)
  148.                     are left unchanged.
  149.  
  150.           [+A]      Set all tags on files to blank (untagged).
  151.  
  152.           <bs>
  153.           [B]       Back up to the previous file in the list.  Go to the last
  154.                     file in the list if B is entered when you are waiting at
  155.                     the first file on the list.
  156.  
  157.                     CWEEP  --  A SWEEP-like program for MS-DOS        Page 4
  158.  
  159.           [C]       Copy this file to another drive.  Prompt for the drive to
  160.                     copy to.  Destination drive can be entered in the form
  161.                     "d[:[v]]".  The if the "v" is specified, then the copy
  162.                     will be verified.  If the file already exists, the user
  163.                     will be queried about whether to delete it or not.  In
  164.                     version 2.x, the destination may be given as a
  165.                     subdirectory.  The default drive will be the current one.
  166.  
  167.                     "A"               - Copy to drive A
  168.                     "A:"              - Copy to drive A
  169.                     "B:V"             - Copy to drive B, and verify copy
  170.                     "B:\GARY:V"       - Copy to subdirectory "\GARY" on drive
  171.                                         B.  Verify the copy.
  172.                     "OTHER\SOME:V"    - Copy to subdirectory "OTHER\SOME" on
  173.                                         the logged drive.  Note that this is
  174.                                         a relative subdirectory, relative to
  175.                                         the current subdirectory on the
  176.                                         logged drive.
  177.  
  178.                     A copy operation may be interupted by hitting a key; the
  179.                     IBM extended keys such as arrows and functions keys will
  180.                     not interupt a copy, however.  If the verify operation is
  181.                     interupted, the file is left on disk.
  182.  
  183.           [-C]      Copy file to another file name.  Need to specify what the
  184.                     new drive and file name are.  Append a ":V" to the end of
  185.                     the new name if you want the copy verified.  Specify the
  186.                     destination subdirectory if required.  Wild cards may be
  187.                     used in the output file name if desired, and the
  188.                     characters will be filled in as you would expect.
  189.  
  190.           [D]       Delete file or subdirectory.  You are asked to verify
  191.                     deletion.
  192.  
  193.           [E]       Erase all tagged or untagged files.  User is prompted for
  194.                     which type of files to erase, and whether the user should
  195.                     be prompted about each file or not.  At most options an
  196.                     "A" will abort the operation.
  197.  
  198.                     If the user requests that to be queried on each file the
  199.                     file name and date is listed and a response requested. 
  200.                     Valid responses are:
  201.  
  202.                     Y    Yes, erase the file.
  203.                     N    No, don't erase this file.  Go on to the next one. 
  204.                          Leaves the file tagged.
  205.                     V    View this file.  Displays the same way a View
  206.                          command would, although paging is always used.
  207.                     !    Go to DOS, to let the user do whatever they want.
  208.                     A    Abort the erase operation and return to the main
  209.                          menu.
  210.  
  211.           [F]       Check free space on any drive.
  212.  
  213.           [H]       Dump the file in hex format one page at a time (affected
  214.                     by paging flag).  The escape and return keys abort the
  215.                     dump, any other key pauses it.
  216.                     CWEEP  --  A SWEEP-like program for MS-DOS        Page 5
  217.  
  218.  
  219.           [+H]      This allows the user to set the search object for a later
  220.                     [V]iew or [H]ex command.  When '+H' is entered, the user
  221.                     will be prompted to enter a search object, which will be
  222.                     used to search the file for a starting point before
  223.                     printing or viewing if the '~' is used to prefix a view or
  224.                     hex dump command.  This command will NOT cause a search; a
  225.                     normal view or hex dump command (prefixed with a ~) must
  226.                     be used later.
  227.  
  228.                     The format of the search object is the same as that used
  229.                     by the DEBUG utility to enter a string:  strings are
  230.                     surrounded by single quotes ('), and numbers are entered
  231.                     as hex digits.  For example:
  232.  
  233.                               FF FE 'Hello'' there' 00
  234.  
  235.                     would look for the sequence of FF(255) FE(254), followed
  236.                     by a string consisting of "Hello' there" followed by a
  237.                     character having the value of 00(0).
  238.  
  239.                               FF FE Hello' there 00
  240.  
  241.                     The "+V" command is interchangeable with the "+H"
  242.                     command.  The search string is remembered until it is
  243.                     changed, so multiple searches may be made for the same
  244.                     search string.
  245.  
  246.           [-H]      Dump the file in hex without pausing.  Affected by the
  247.                     paging flag.
  248.  
  249.           [I]       Display the file size in bytes and the creation time. 
  250.                     Also displays the file attributes.
  251.  
  252.           [-I]      Display the file information on all tagged files.
  253.  
  254.           [+I]      Display the file information on all untagged files.
  255.  
  256.           [J]       Jump to the file in the list.  Specify name and
  257.                     extension, it will jump to the closest point in the list.
  258.  
  259.           [L]       Log in a new drive (directory on V2.x) and ambiguous
  260.                     filename.  Will replace the list currently being used by
  261.                     one matching what was entered.  If no period (".") is in
  262.                     the string, a "*.*" will be appended to the string for
  263.                     the ambiguous filename.
  264.  
  265.           [-L]      Log in the subdirectory currently displayed.
  266.  
  267.           [+L]      Log into the directory one higher than where we are.
  268.  
  269.           [M]       Copy all files which have been tagged to a specified
  270.                     drive.  The syntax is the same as for the Copy option. 
  271.                     This option WILL delete (without warning) any files
  272.                     existing on the destination if they match a file which is
  273.                     being copied.
  274.  
  275.                     CWEEP  --  A SWEEP-like program for MS-DOS        Page 6
  276.  
  277.           [N]       Calculate a CRC for this file.  This is the same CRC as
  278.                     the CP/M program CRCK returns.
  279.  
  280.           [-N]      Calculate CRC's for all tagged files.
  281.  
  282.           [+N]      Calculate CRC's for all untagged files.
  283.  
  284.           [-O]      Output a list of all tagged files to a disk file.
  285.  
  286.           [+O]      Output a list of all untagged files to a disk file.
  287.  
  288.           [P]       Protected mass copy option.  Same as "M" option except
  289.                     that the user will be queried before existing files are
  290.                     deleted.  If the output file exists, there will be a menu
  291.                     similar to that presented under the queried erase
  292.                     command.  The same options apply, including viewing the
  293.                     file and going to DOS.  You can view both the input and
  294.                     output files to determine what steps to take.
  295.  
  296.           [-Q]      Display a list of tagged files.
  297.  
  298.           [+Q]      Display a list of untagged files.
  299.  
  300.           [R]       Rename the file to something else.  A wildcard new name
  301.                     is allowed.  If just "*" is entered, a wild card may be
  302.                     entered for the old and new names.
  303.  
  304.           [S]       Sort the directory in order by name, extension, date, or
  305.                     size.  Preceed the sort field by "-" to invert the normal
  306.                     order.  Can be sorted by:
  307.  
  308.                     n    Name and extension
  309.                     e    Extension and name
  310.                     d    Date
  311.                     s    Size
  312.                     t    Tag marker
  313.                     #    Re-sort by the last specified order
  314.  
  315.           [T]       Tag a file.  It will appear in the listing marked with a
  316.                     "*", and will be used in any operations which work on
  317.                     tagged files.
  318.  
  319.           [U]       Untag a file.  Clears the "*" marker.
  320.  
  321.           [V]       Display the file a page at a time.  It ignores line
  322.                     feeds, and converts returns and vertical tabs to
  323.                     return/linefeed.  This allows listing files created by
  324.                     programs which only put returns in the file, such as
  325.                     Spellbinder.  The listing can be controlled by using
  326.                     return or escape to terminate, and any other key to
  327.                     pause.
  328.  
  329.                     If the file is a .WKS, .WRK, or .WK1 file (Lotus
  330.                     spreadsheets), CWEEP will display the contents of the
  331.                     worksheet in a readable form.  This displays information
  332.                     about the spreadsheet, including ranges, graphs, and the
  333.                     contents of each cell.
  334.                     CWEEP  --  A SWEEP-like program for MS-DOS        Page 7
  335.  
  336.  
  337.                     The paging flag controls whether this command pages the
  338.                     display or if -V does.
  339.  
  340.                     See the documentation on the mini-menu for setting the
  341.                     file viewing program
  342.  
  343.           [+V]      Set search object.  Same as "+H" command.
  344.  
  345.           [-V]      Display file without paging.  Affected by paging flag.
  346.  
  347.           [W]       Tag all files matching a wildcard.
  348.           [+W]      Untag all files matching a wildcard.
  349.           [-W]      Tag all files not matching a wildcard.
  350.  
  351.                     In the "W" and "+W" commands, the wildcard may be entered
  352.                     as "wildcard;attributes".  The match test will require
  353.                     that the wildcard match and that the file have (at least)
  354.                     the attributes specified in the attribute string.  The
  355.                     attribute string is in the same format as in the "Y"
  356.                     command below.
  357.  
  358.                     Note that matching all attributes specified means that a
  359.                     match will occur if the specified set attributes are on
  360.                     and the specified clear attributes are off.  The state of
  361.                     attributes not specified as set or cleared doesn't matter.
  362.  
  363.                     If a question mark is included in the archive string, then
  364.                     the user will be queried on whether to tag or untag each
  365.                     file.  You may also view the file, drop to DOS, tag/untag
  366.                     the rest of the files, or abort the wildcard operation.
  367.  
  368.           [Y]       Modify the attributes associated with a file.  The user
  369.                     will be prompted for attributes to add (+) and subtract
  370.                     (-) for the file.  The user can input a string consisting
  371.                     of "+", "-", "a", "r", "h", "s" in any combination.  The
  372.                     characters mean:
  373.  
  374.                          +    Set the following attributes.  There is an
  375.                               implied "+" at the start of the input, so the
  376.                               default is to set the file attributes entered.
  377.  
  378.                          -    Clear the following attributes.  Will remain in
  379.                               effect to the end of the input string or until a
  380.                               "+" is found.
  381.  
  382.                          a    Set/clear the archive bit.
  383.  
  384.                          r    Set/clear the read-only bit.
  385.  
  386.                          h    Set/clear the hidden bit.
  387.  
  388.                          s    Set/clear the system bit.
  389.  
  390.                     Note that the attributes on a file are NOT copied to a new
  391.                     file by any of the copy commands; the only way to do that
  392.                     is to use the "Y" command to set the attributes.
  393.                     CWEEP  --  A SWEEP-like program for MS-DOS        Page 8
  394.  
  395.  
  396.           [-Y]      Set/clear attributes for all tagged files.
  397.  
  398.           [+Y]      Set/clear attributes for all untagged files.
  399.  
  400.           [Z]       Enter a CHDIR command.  Note that this will only change
  401.                     the DOS default directory.  It will NOT change the
  402.                     directory which CWEEP has logged.  However, now that you
  403.                     have changed the default directory, you can refer to it
  404.                     just a D: instead of having to put out the entire path
  405.                     (unless you are copying to the same drive as the source
  406.                     files are on).
  407.  
  408.           [-Z]      Create a subdirectory (MKDIR).
  409.  
  410.           [?]
  411.           [/]       Print help text for all commands with no "+" or "-"
  412.                     prefix.
  413.  
  414.           [-?]
  415.           [-/]      Print help text for all commands with a "-" prefix.
  416.  
  417.           [+?]
  418.           [+/]      Print help text for all commands with a "+" prefix.
  419.  
  420.  
  421.  
  422.         If the display output is paged, then if a "+" or "-" is typed at the
  423.         "[more]" prompt, the display will be scrolled up a single line and
  424.         the prompt re-displayed.  Using the "+"/"-" with the hex dump is not
  425.         recommended, since pages are defined in terms of a number of lines,
  426.         and using the "+"/"-" will shift a page of the hex dump to break in
  427.         the middle of an address range.
  428.  
  429.                     CWEEP  --  A SWEEP-like program for MS-DOS        Page 9
  430.  
  431.  
  432.           [=]       This will take you to a settings menu controlling several
  433.                     program flags.  These are:
  434.  
  435.                     [8]  Select whether 8-bit characters are displayed
  436.                          unchanged, or if the 8th bit is stripped off.  If
  437.                          8-bit characters are displayed, only special
  438.                          characters like <cr>, <lf>, <tab>, etc are handled
  439.                          specially, and all others are displayed as text
  440.                          characters.  If 8-bit characters are not being
  441.                          displayed, then the 8th bit is removed, and
  442.                          everything outside of the range of 32-127 is
  443.                          considered to be non-printable.
  444.  
  445.                     [A]  Select whether time for the Info command is displayed
  446.                          as AM/PM or 24-hour.  The choice is toggled between
  447.                          the two options each time this option is selected.
  448.  
  449.                     [B]
  450.                     [I]  Select how I/O is done.  You will be prompted if you
  451.                          want to use Standard DOS, IBM compatible bios, or
  452.                          Z-100 bios to do the output.  Using the bios
  453.                          routines will improve the display speed about 33%
  454.                          (IBM) or nearly 50%(Z-100).
  455.  
  456.                          Note to Z-100 users: if PERKS is brought up while
  457.                          running CWEEP, using the bios I/O gives a jerky
  458.                          scroll until CWEEP is exited again.  It's no slower,
  459.                          just strange.  I have no explanation.
  460.  
  461.                     [C]  Control clearing the screen while viewing a file. 
  462.                          If on,  the screen will be cleared each time
  463.                          "[more]" is displayed at the bottom of the screen if
  464.                          a bios I/O method is being used.
  465.  
  466.                     [H]
  467.                     [S]  Control whether or not logging in files on a drive
  468.                          will list files with the hidden and/or system
  469.                          attribute.  The normal default is to not display
  470.                          those files.  If this ability is turned on, the drive
  471.                          must be re-logged to list any hidden/system files.
  472.  
  473.                     [M]  Turn the menu printing on/off.  Turning it off will
  474.                          suppress printing the menu when logging a new file
  475.                          specification.  Same as the command line option "-?"
  476.                          or "-/".
  477.  
  478.                     [P]  Turn the paged display on/off.  Controls whether the
  479.                          output from the view and hex dump commands will be
  480.                          paged or not by default.  If this is active, then
  481.                          "-V" will NOT page the display, and vice-versa.
  482.  
  483.                     CWEEP  --  A SWEEP-like program for MS-DOS       Page 10
  484.  
  485.                     [V]  Turn special viewing on/off.  When active, the
  486.                          program named in the environment variable CWEEP:V
  487.                          will be used to display the file, instead of CWEEP's
  488.                          own view routine.  This allows using a program such
  489.                          as Vernon Buerg's LIST.COM to page through files. 
  490.                          You can set the environment variable by including a
  491.                          command such as:
  492.  
  493.                               SET CWEEP:V=C:\BIN\LIST.COM
  494.  
  495.                          in your autoexec.bat file, or from the keyboard. 
  496.                          Note that the entire path and full program name MUST
  497.                          be included.  This could also be any program that
  498.                          expects the file name on the command line, such as a
  499.                          text editor.
  500.  
  501.                     [W]  Turn on/off extended display of Lotus and Symphony
  502.                          spreadsheets.  If on, files with the appropriate
  503.                          extension will be displayed as worksheets.
  504.  
  505.                     [Z]  Turn ctrl/Z processing on/off.  When on, viewing a
  506.                          file will stop on ctrl/Z.  When off, ctrl/Z is not
  507.                          considered an end of file.
  508.  
  509.                     [=]
  510.                     [Q]
  511.                     [X]  Exit the settings menu and return to normal
  512.                          operations.
  513.  
  514.                     [?]
  515.                     [/]  Print a help message.
  516.  
  517.         On IBM-PC compatible computers, the following special keys have
  518.         meaning:
  519.  
  520.           <Down>    Go to next entry (same as <CR>).
  521.  
  522.           <Up>      Go to previous entry (same as B).
  523.  
  524.           <PgUp>    Go back 16 entries.
  525.  
  526.           <PgDn>    Go forward 16 entries.
  527.  
  528.           <Home>    Go to top of list (entry 1).
  529.  
  530.           <End>     Go to last entry in list.
  531.  
  532.           <Delete>  Delete file/directory (Same as D).
  533.  
  534.           <Insert>  Create a subdirectory (Same as -Z).
  535.  
  536.           <Left>
  537.           <Right>   Ignored.  This allows the user of a mouse driver which
  538.                     produces arrow keystrokes without confusion.
  539.  
  540.           <Alt>A    Set file attributes (Same as Y).
  541.  
  542.                     CWEEP  --  A SWEEP-like program for MS-DOS       Page 11
  543.  
  544.  
  545.                                 COMMAND LINE SWITCHES
  546.  
  547.         The following is a list of valid command line switches for CWEEP. 
  548.         They may follow or preceed the file specification to be logged in.
  549.  
  550.           [-?]
  551.           [-/]      Toggle the main help menus on/off.  If menus are off, the
  552.                     main help menus will only be displayed when requested. 
  553.                     This setting may be altered from the mini-menu.
  554.  
  555.           [-8]      Toggle 8-bit display.  Will reverse the current setting
  556.                     for whether 8-bit characters are displayed as is or with
  557.                     the parity bit removed.
  558.  
  559.           [-a]      Toggle AM/PM or 24-hour time display for the Info command.
  560.  
  561.           [-b]
  562.           [-i]      Select the type of I/O routines to use.  The switches
  563.                     work as follows (-i and -b are interchangeable):
  564.  
  565.                     -b   IBM Bios on (or off if patched on)
  566.                     -bi  Same as -b or -i
  567.                     -bz  Z-100 Bios on (or off if patched on)
  568.                     -bs  Standard DOS I/O.  Only DOS I/O can be redirected
  569.                          from the command line.
  570.  
  571.           [-c]      Toggle whether the screen is cleared at the beginning of
  572.                     each page of text when viewing to the screen if using a
  573.                     bios I/O method.
  574.  
  575.           [-h]      Toggle looking up hidden/system files.
  576.  
  577.           [-p]      Toggle the paged display on/off.
  578.  
  579.           [-v]      Disable the use of an external file viewing program, if
  580.                     one was specified with a SET command.
  581.  
  582.           [-z]      Toggle control/Z processing.  If present on the command
  583.                     line, control/Z will be ignored when encountered in a
  584.                     file being viewed.  This setting may be altered from the
  585.                     mini-menu.
  586.  
  587.           [-d]
  588.           [-e]
  589.           [-n]
  590.           [-s]      Set the initial sort order to ascending whatever.  The
  591.                     options are the same as in the [S] command.  If the
  592.                     switch is entered as [--x] then the order will be
  593.                     descending (i.e., [--d] will sort by descending date, or
  594.                     most recent first).
  595.  
  596.                     CWEEP  --  A SWEEP-like program for MS-DOS       Page 12
  597.  
  598.  
  599.            For the user who does not like the default settings of some of the
  600.         command-line switches in CWEEP (not for the faint of heart), it is
  601.         possible to patch the values with DEBUG.  If you unassemble the
  602.         beginning of the code, you will find several move word and move byte
  603.         instructions.  By changing the value moved to 1 (true) or 0 (false)
  604.         the default may be changed (note that sort-order is an ascii
  605.         character).  To do the patching, rename CWEEP.EXE to CWEEP.BIN and
  606.         type:
  607.  
  608.                   DEBUG CWEEP.BIN
  609.  
  610.            Then, disassemble the beginning of CWEEP by typeing:
  611.  
  612.                   -u310 l60
  613.  
  614.            DEBUG will then display everything to the right of the patch addr
  615.         entry in the table below (???? means some address we are not
  616.         concerned with):
  617.  
  618.         Fcn  Patch   Address   Hex code      Disassembled instructions
  619.               Addr
  620.  
  621.                      ????:0310 33C0          XOR     AX,AX
  622.                      ????:0312 E8????        CALL    ????
  623.                      ????:0315 C706????0100  MOV     WORD PTR [????],0001
  624.                      ????:031B C706????0000  MOV     WORD PTR [????],0000
  625.         ( 1)  325    ????:0321 C706????0100  MOV     WORD PTR [????],0001
  626.         ( 2)  32B    ????:0327 C606????6E    MOV     BYTE PTR [????],6E
  627.         ( 3)  330    ????:032C C606????00    MOV     BYTE PTR [????],00
  628.         ( 4)  335    ????:0331 C606????00    MOV     BYTE PTR [????],00
  629.         ( 5)  33A    ????:0336 C606????00    MOV     BYTE PTR [????],00
  630.         ( 6)  33F    ????:033B C706????0100  MOV     WORD PTR [????],0001
  631.         ( 7)  345    ????:0341 C706????0100  MOV     WORD PTR [????],0001
  632.         ( 8)  34B    ????:0347 C706????0000  MOV     WORD PTR [????],0000
  633.         ( 9)  351    ????:034D C706????0100  MOV     WORD PTR [????],0001
  634.         (10)  357    ????:0353 C706????0000  MOV     WORD PTR [????],0000
  635.         (11)  35D    ????:0359 C706????0000  MOV     WORD PTR [????],0000
  636.         (12)  363    ????:035F C706????0000  MOV     WORD PTR [????],0000
  637.         (13)  369    ????;0365 C706????0000  MOV     WORD PTR [????],0000
  638.  
  639.            1)  Menu display        The "M" in the settings menu
  640.                                      01 00 - Menu will be displayed
  641.                                      00 00 - Menu will not be displayed
  642.  
  643.            2)  Initial sort order
  644.            3)
  645.            4)                      Place the desired original sort order
  646.                                    here, using upper case for descending and
  647.                                    lower case for ascending sort.  Use one
  648.                                    character per MOV instruction.  The same
  649.                                    letters are used as in the set sort
  650.                                    command, but the '-'s have been applied to
  651.                                    the letters which follow them.
  652.  
  653.            5) Terminates string    (Don't change this at all!!)
  654.                     CWEEP  --  A SWEEP-like program for MS-DOS       Page 13
  655.  
  656.  
  657.            6)  Ctrl/Z handling     The "Z" in the settings menu
  658.                                      00 00 - Ignore ctrl/Z
  659.                                      01 00 - Ctrl/Z means EOF
  660.  
  661.            7)  Paged display       The "P" in the settings menu
  662.                                      00 00 - Unpaged view by default
  663.                                      01 00 - Paged view by default
  664.  
  665.            8)  I/O display         What display routines to use:
  666.                                      00 00 - Standard DOS (can redirect)
  667.                                      01 00 - IBM Bios
  668.                                      02 00 - Z100 Bios
  669.  
  670.            9)  Worksheet display   Controls whether worksheets will be
  671.                                    displayed in a special manner or not:
  672.                                      01 00 - Special interpreted display
  673.                                      00 00 - As if it was text
  674.  
  675.           10)  Clear screen        Is screen cleared during viewing (only
  676.                                    works if using a bios I/O method):
  677.                                      00 00 - No screen clear after [more]"
  678.                                      01 00 - Screen is cleared after "[more]"
  679.  
  680.           11)  Display 8-bit       Are 8-bit character displayed as is, or
  681.                                    with the 8th bit removed:
  682.                                      00 00 - 8th bit removed
  683.                                      01 00 - 8th bit unchanged
  684.  
  685.           12)  Lookup sys/hidden   Are system/hidden files found when a disk
  686.                                    is logged in:
  687.                                      00 00 - Not found
  688.                                      01 00 - Are found
  689.  
  690.           13) Time AM/PM or 24-hr  Is the time for the Info command displayed
  691.                                    as AM/PM or 24-hour:
  692.                                      00 00 - 24-hour
  693.                                      01 00 - AM/PM
  694.  
  695.            Using the DEBUG "E" command, modify the bytes in each instruction
  696.         which control the feature desired (at the "patch addr" address).  For
  697.         example, to turn on IBM bios usage, and not display the menu except
  698.         when requested:
  699.  
  700.                   E34B 01 00
  701.                   E325 00 00
  702.  
  703.            The best way to check that you made the changes correctly is to go
  704.         back and use the "u" command to unassemble the same section of the
  705.         program and make sure that the only things changed are what you
  706.         expected to change.  If the instructions don't look at all like they
  707.         used to, you probably placed the code in the wrong location.
  708.  
  709.                     CWEEP  --  A SWEEP-like program for MS-DOS       Page 14
  710.  
  711.            When all of the changes have been made, use the "w" command to
  712.         write the file back to disk, quit DEBUG with the "q" command.  Rename
  713.         CWEEP.BIN back to CWEEP.EXE and try it out.  Be sure to test this
  714.         version where it can't get to any files in case you make a mistake.
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.            CWEEP is written in the C language, and compiled with the Microsoft
  723.         C V5.0 compiler.  Development has been done at different times using a
  724.         Zenith Z-100, Zenith Z-151, and a Multitech Accel 900.  Custom
  725.         routines for reading and writing files and handling all I/O to the
  726.         keyboard and printer.  These avoid the use of the standard I/O
  727.         library which would increase the size of the program.
  728.  
  729.            If the standard DOS I/O routines are used, the output of CWEEP may
  730.         be re-directed to a file or to the printer.  However, the output will
  731.         not be displayed on the screen, making it rather difficult to use.  It
  732.         is nice for obtaining a copy of the menus in a file, however.
  733.  
  734.                     CWEEP  --  A SWEEP-like program for MS-DOS       Page 15
  735.  
  736.  
  737.         Modification history of released versions:
  738.  
  739.           1.30    Jul 1984    o    Original version, supports DOS v1.x
  740.                                    directories only.
  741.  
  742.           2.14    Jan 1985    o    Supported DOS 2.x subdirectories.
  743.  
  744.           2.30h   Dec 1987    o    Supported faster display output with bios
  745.                                    options.
  746.                               o    Lotus Worksheet displayed in the view
  747.                                    command.
  748.                               o    Reverse default sense of the "-" for
  749.                                    display paging.
  750.                               o    Added ability to search for text before
  751.                                    viewing.
  752.                               o    Added CRC of a file option.
  753.                               o    External viewing program and ability to go
  754.                                    to DOS added.
  755.                               o    Larger copy buffer added (63K).
  756.                               o    Added ability to go up/down directory
  757.                                    trees with the log command.
  758.                               o    Display subdirectories in the file list. 
  759.                                    Can also delete them.
  760.                               o    Ability to view files during protected
  761.                                    copies and queried erases added.
  762.                               o    Display volume label.
  763.                               o    Lookup hidden/system files.
  764.                               o    Add ability to modify attributes.
  765.                               o    Wildcard tag/untag based on attributes.
  766.                               o    Display Info on tagged or untagged files.
  767.  
  768.           2.31a     Jan 1988  o    Support IBM arrow keys, PgUp, PgDn, Home,
  769.                                    End, Insert, Delete, <Alt>A.
  770.                               o    Print error if doing a protected copy over
  771.                                    an existing subdirectory.
  772.                               o    Fix problem with program hanging (need
  773.                                    ctrl/C to exit) if doing a protected copy
  774.                                    and user tells it to abort or not delete
  775.                                    the output file.  (Did a close of the stdin
  776.                                    handle).
  777.